package com.lizongbo.seotijian.web.servlets.cgi;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface Cgi {
	/**
	 * 允许输出的内容格式
	 */
	static final String FORMATS[] = new String[] { ".html", ".json", ".txt",
			".xml", ".js" };

	void doCgi(String cgiName, String param, HttpServletRequest req,
			HttpServletResponse resp) throws ServletException, IOException;

	String getCgiName();
}
